﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestService.ServiceReference1;

namespace TestService
{
    class Program
    {
        static void Main(string[] args)
        {
            var establishment = new EstablishmentDTO
            {
                ID = "1234",
                IDEstablishmentType = 1,
                IDFoodType = 1,
                Name = "AAA",
                Location = "HCM"
            };

            if(MReviewerService.Instance.Establishment_Insert(establishment))
                Console.WriteLine("insert successful");
            else
                Console.WriteLine("insert failed");

            var lst = MReviewerService.Instance.Establishment_SelectAll();
            foreach (var item in lst)
                Console.WriteLine(item.Name);
        }
    }
}
